package com.yqg.protection.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * current_dq 实体类
 *
 * @author zxf
 * @since 2025-08-29
 */
@Getter
@Setter
@TableName("current_dq")
@ApiModel(value = "CurrentDq对象", description = "安全用电探测器实时数据表")
public class CurrentDq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备ID（主键）")
    @TableId(value = "equipment_input_store_id")
    private Long equipmentInputStoreId;

    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    @ApiModelProperty("业务数据类型")
    private Integer businesstype;

    @ApiModelProperty("设备ID")
    private Integer smokeid;

    @ApiModelProperty("设备MAC")
    private String mac;

    @ApiModelProperty("设备类型")
    private String devicetype;

    @ApiModelProperty("信号强度")
    private Integer dsignal;

    @ApiModelProperty("电池状态")
    private Integer batterys;

    @ApiModelProperty("电量(%)")
    private Integer volvalue;

    @ApiModelProperty("电压值(mV)")
    private Integer voltagevalue;

    @ApiModelProperty("IMSI")
    private String imsi;

    @ApiModelProperty("事件类型")
    private Integer messagetype;

    @ApiModelProperty("A相电压状态")
    private Integer uas;

    @ApiModelProperty("A相电压值")
    private String ua;

    @ApiModelProperty("B相电压状态")
    private Integer ubs;

    @ApiModelProperty("B相电压值")
    private String ub;

    @ApiModelProperty("C相电压状态")
    private Integer ucs;

    @ApiModelProperty("C相电压值")
    private String uc;

    @ApiModelProperty("A相电流状态")
    private Integer cas;

    @ApiModelProperty("A相电流值")
    private String ca;

    @ApiModelProperty("B相电流状态")
    private Integer cbs;

    @ApiModelProperty("B相电流值")
    private String cb;

    @ApiModelProperty("C相电流状态")
    private Integer ccs;

    @ApiModelProperty("C相电流值")
    private String cc;

    @ApiModelProperty("漏电流状态")
    private Integer leakvs;

    @ApiModelProperty("漏电流值")
    private String leakv;

    @ApiModelProperty("A相温度状态")
    private Integer tas;

    @ApiModelProperty("A相温度值")
    private String ta;

    @ApiModelProperty("B相温度状态")
    private Integer tbs;

    @ApiModelProperty("B相温度值")
    private String tb;

    @ApiModelProperty("C相温度状态")
    private Integer tcs;

    @ApiModelProperty("C相温度值")
    private String tc;

    @ApiModelProperty("D相温度状态")
    private Integer tds;

    @ApiModelProperty("D相温度值")
    private String td;

    @ApiModelProperty("N相温度状态")
    private Integer tns;

    @ApiModelProperty("N相温度值")
    private String tn;

    @ApiModelProperty("功率因数")
    private String pf;

    @ApiModelProperty("无功电能 单位kWh")
    private String eqt;

    @ApiModelProperty("功率(W)")
    private String p;

    @ApiModelProperty("总无功功率 单位kW")
    private String q;

    @ApiModelProperty("A相无功功率 单位kW")
    private String qa;

    @ApiModelProperty("B相无功功率 单位kW")
    private String qb;

    @ApiModelProperty("C相无功功率 单位kW")
    private String qc;

    @ApiModelProperty("设备型号")
    private String dtypename;
    @ApiModelProperty("设备安装的站点地址")
    private String siaddress;
    @ApiModelProperty("设备安装的楼层")
    private String sitelname;
    @ApiModelProperty("设备安装的详细地址")
    private String installaddress;
    @ApiModelProperty("经度")
    private Long longitude;
    @ApiModelProperty("纬度")
    private Long latitude;
}
